package com.dongjiantong.insurance.service;

import com.dongjiantong.common.model.Response;
import com.dongjiantong.insurance.model.InsuranceApplication;
import com.dongjiantong.mybatis.BaseService;
import com.github.pagehelper.PageInfo;
import com.sun.org.apache.regexp.internal.RE;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface InsuranceApplicationService extends BaseService<InsuranceApplication> {
    /**
     * 查询保单申请分页列表
     *
     * @param farm_ids  养殖场id 集合(可为空,表示 查所有)
     * @param startDate 查询起始日期(可为空)
     * @param endDate   查询结束日期(可为空)
     * @param pageNum
     * @param pageSize
     * @return Response<PageInfo<InsuranceApplication>>
     */
    Response<PageInfo<InsuranceApplication>> selectByExample(String farm_ids, String startDate, String endDate, Integer pageNum, Integer pageSize);

    /**
     * 根据区域查询保单
     * @param map
     * @return
     */
    List<InsuranceApplication> selectByArea(Map map);
}
